package com.wss.day04.test02;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/22
 */
public class Manager extends Employee{
    private String level;

    public Manager(String name, String address, String ID, double wage, int workAge, String level) {
        super(name, address, ID, wage, workAge);
        this.level = level;
    }

    @Override
    public void addSalary() {
        this.wage *= 1.20;
    }

    @Override
    public String toString() {
        return super.toString() + ", 级别: " + level;
    }
}
